From 1f5296f7d51fa81588e08ff0c2e3cb1c8e47ea4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Thu, 30 Aug 2018 02:01:18 +0200 Subject: [PATCH] babl-fish: handle case of no from_list in source --- babl/babl-fish.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/babl/babl-fish.c b/babl/babl-fish.c index 0976de6..a530655 100644 --- a/babl/babl-fish.c +++ b/babl/babl-fish.c @@ -120,7 +120,8 @@ babl_conversion_find (const void *source, { void *data = (void*)destination; - babl_list_each (BABL (source)->type.from_list, match_conversion, &data); + if (BABL (source)->type.from_list) + babl_list_each (BABL (source)->type.from_list, match_conversion, &data); if (data != (void*)destination) /* didn't change */ return data; data = NULL; -- 2.30.2